package com.baidu.controller;
import com.baidu.service.EmailService;
import com.baidu.utils.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
 * @Description: 邮箱控制层
 * @Author: 王雨超
 * @Date: 2021/12/13 16:51
 */
@CrossOrigin
@RestController
@RequestMapping("/email")
@SuppressWarnings({"all"})
public class EmailController {
    @Autowired
    private EmailService emailService;
    @PostMapping("/sendEmail")
    public ResultResponse sendEmail(@RequestBody Map map){
        return emailService.sendEmail(map);
    }
}
